<?php
/**
 * Created by PhpStorm.
 * User: jocky
 * Date: 2018/1/31
 * Time: 10:29
 */

/**
 * @var int $uid
 * @var string $accountType
 * @var array $fields
 * @var $record \common\models\ar\RealName
 */
$str = "";
//foreach ($fields as $k=>$v) {
//var_dump();
//exit();
//    $str .= <<<EOF
//<div class='form-group'>
//    <label class="control-label col-md-3 col-sm-3 col-xs-12">{$v["key"]}</label>
//    <div class="col-md-7 col-sm-7 col-xs-12">
//EOF;

    if (!empty($fields['value'])) {
//        case 5://图片
            $str .= "<img src='" . $fields['value'] . " ' class='img-responsive img-thumbnail'/>";
//    }
    $str .= "</div></div>";
    $money_order=$fields['money_order'];
}
?>

<div class="row">
    <div class="col-md-12">
        <form class="form-horizontal form-label-left" style="max-height: 480px;overflow-y: scroll;">
            <?= $str; ?>
        </form>

        <hr/>
        <form class="form-horizontal form-label-left">
            <div class="form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12">拒绝原因：</label>
                <div class="col-md-7 col-sm-7 col-xs-12">
                    <textarea class="form-control"
                              rows="3"
                              disabled="disabled"
                              id="realNameCheckErrorMsg"
                              placeholder="执行拒绝操作时为必填项，客户端会显示拒绝的原因">请检查上传的截图是否存在已提交或者上传错误！</textarea>
                </div>
            </div>
            <?php if ($fields->user_type == 1) { ?>
                <div class="form-group">
                    <label class="control-label col-md-3 col-sm-3 col-xs-12"></label>
                    <div class="col-md-7 col-sm-7 col-xs-12">
                        <button type="button" class="btn btn-sm btn-danger"
                                onclick="rechargeObj.operate(<?= $money_order; ?>,0)">
                            拒 绝
                        </button>
                        <button type="button" class="btn btn-sm btn-success"
                                onclick="rechargeObj.operate(<?= $money_order; ?>,1)">
                            通 过
                        </button>
                    </div>
                </div>
            <?php } ?>
        </form>
    </div>
</div>